import './Cart.css'
import React, { Component } from 'react';
import  {Button} from 'antd'
class Cart extends Component {
   
    render() {
        const List =[]
        const total = 0
        return (
            <div>
                {
                   List.map(item=>{
                       return(
                        <div className='item' key={item.id}>
                            <div>{item.name}</div>
                            <div>价格：{item.price}</div>
                            <div>*{item.number}</div>
                            <Button onClick={this.removeGoodsFromCart}>-</Button>
                        </div>
                       )
                   }) 
                }
                <div>总价：{total}</div>
            </div>
        );
    }
}

export default Cart;